home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / drivers / scsi / Makefile < prev    next >
Encoding:
Makefile  |  1994-06-05  |  2.2 KB  |  118 lines

  1. # Makefile for 680x0 Linux scsi source directory
  2. #
  3. # Copyright 1993 by Hamish Macdonald
  4. #
  5. # This file is subject to the terms and conditions of the GNU General Public
  6. # License.  See the file "README.legal" in the main directory of this archive
  7. # for more details.
  8.  
  9. include ../../MakeVars
  10. include ../../.config
  11.  
  12. #CFLAGS := $(CFLAGS) -DDEBUG -DWDEBUG
  13.  
  14. SCSI_OBJS =
  15. SCSI_SRCS =
  16.  
  17. ifdef CONFIG_SCSI
  18.  
  19. SCSI_OBJS := hosts.o scsi.o scsi_ioctl.o constants.o
  20. SCSI_SRCS := hosts.c scsi.c scsi_ioctl.c constants.c
  21.  
  22. ifdef CONFIG_CHR_DEV_ST
  23. SCSI_OBJS := $(SCSI_OBJS) st.o
  24. SCSI_SRCS := $(SCSI_SRCS) st.c
  25. endif
  26.  
  27. ifdef CONFIG_BLK_DEV_SD
  28. SCSI_OBJS := $(SCSI_OBJS) sd.o sd_ioctl.o
  29. SCSI_SRCS := $(SCSI_SRCS) sd.c sd_ioctl.c
  30. endif
  31.  
  32. ifdef CONFIG_BLK_DEV_SR
  33. SCSI_OBJS := $(SCSI_OBJS) sr.o sr_ioctl.o
  34. SCSI_SRCS := $(SCSI_SRCS) sr.c sr_ioctl.c
  35. endif
  36.  
  37. ifdef CONFIG_CHR_DEV_SG
  38. SCSI_OBJS := $(SCSI_OBJS) sg.o
  39. SCSI_SRCS := $(SCSI_SRCS) sg.c
  40. endif
  41.  
  42. ifdef CONFIG_SCSI_DEBUG
  43. SCSI_OBJS := $(SCSI_OBJS) scsi_debug.o
  44. SCSI_SRCS := $(SCSI_SRCS) scsi_debug.c
  45. endif
  46.  
  47. ifdef CONFIG_A3000_SCSI
  48. SCSI_OBJS := $(SCSI_OBJS) a3000.o
  49. SCSI_SRCS := $(SCSI_SRCS) a3000.c
  50. endif
  51.  
  52. ifdef CONFIG_A2091_SCSI
  53. SCSI_OBJS := $(SCSI_OBJS) a2091.o
  54. SCSI_SRCS := $(SCSI_SRCS) a2091.c
  55. endif
  56.  
  57. ifdef CONFIG_GVP11_SCSI
  58. SCSI_OBJS := $(SCSI_OBJS) gvp11.o
  59. SCSI_SRCS := $(SCSI_SRCS) gvp11.c
  60. endif
  61.  
  62. ifdef CONFIG_A3000_SCSI
  63. SCSI_OBJS := $(SCSI_OBJS) wd33c93.o
  64. SCSI_SRCS := $(SCSI_SRCS) wd33c93.c
  65. else
  66. ifdef CONFIG_A2091_SCSI
  67. SCSI_OBJS := $(SCSI_OBJS) wd33c93.o
  68. SCSI_SRCS := $(SCSI_SRCS) wd33c93.c
  69. else
  70. ifdef CONFIG_GVP11_SCSI
  71. SCSI_OBJS := $(SCSI_OBJS) wd33c93.o
  72. SCSI_SRCS := $(SCSI_SRCS) wd33c93.c
  73. endif
  74. endif
  75. endif
  76.  
  77. ifdef CONFIG_SCSI_GENERIC_NCR5380
  78. SCSI_OBJS := $(SCSI_OBJS) g_NCR5380.o
  79. SCSI_SRCS := $(SCSI_SRCS) g_NCR5380.c
  80. endif
  81.  
  82. ifdef CONFIG_ATARI_SCSI
  83. SCSI_OBJS := $(SCSI_OBJS) atari_scsi.o
  84. SCSI_SRCS := $(SCSI_SRCS) atari_scsi.c
  85. endif
  86.  
  87.  
  88.  
  89.   
  90. scsi.a: $(SCSI_OBJS)
  91.     $(RM) $(RMFLAGS) scsi.a
  92.     $(AR) rcs scsi.a $(SCSI_OBJS)
  93.     sync
  94.  
  95. dep:
  96.     $(CPP) -M $(AHA152X) $(SCSI_SRCS) > .depend
  97.  
  98. else
  99.  
  100. scsi.a:
  101.     $(RM) scsi.a
  102.     @echo "No SCSI drivers configured"
  103.     $(AR) rcs scsi.a
  104.  
  105. dep:
  106.  
  107. endif
  108.  
  109. clean:
  110.     $(RM) $(RMFLAGS) *.o *.a
  111.  
  112. #
  113. # include a dependency file if one exists
  114. #
  115. ifeq (.depend,$(wildcard .depend))
  116. include .depend
  117. endif
  118.